package ooday05;

public class GetterSetterDemo {
    public static void main(String[] args) {
        point p = new point();
        p.setX(100);
        p.setY(200);
        System.out.println(p.getX()+","+p.getY());

        point o = new point();
        o.setA(250);
        o.setB(300);
        System.out.println(o.getA()+","+o.getB());

    }
}
